:root {
    --cyber-blue: #00a8ff;
    --neon-blue: #0ff;
    --dark-blue: #001b2e;
    --light-blue: #4fc3f7;
    --terminal-bg: rgba(0, 27, 46, 0.8);
    --text-color: #fff;
    --grid-size: 40px;
}

body {
    margin: 0;
    padding: 0;
    /* background: var(--dark-blue); */
    color: var(--text-color);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* 背景网格 */
.cyber-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(79, 195, 247, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(79, 195, 247, 0.03) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    z-index: -1;
    animation: gridMove 20s linear infinite;
    opacity: 0.15;
}

.cyber-terminal {
    width: 100vw;
    height: 100vh;
    /* background: rgba(0, 27, 46, 0.8); */
    /* backdrop-filter: blur(10px); */
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    border-radius: 0;
    z-index: 1;
}

.terminal-header {
    background: rgba(0, 168, 255, 0.15);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
}

.header-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.header-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyber-blue);
    opacity: 0.7;
}

.terminal-title {
    color: var(--cyber-blue);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-actions button {
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--cyber-blue);
    color: var(--cyber-blue);
    padding: 8px 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header-actions button:hover {
    background: var(--cyber-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.terminal-content {
    padding: 20px;
    /* background: linear-gradient(180deg, 
        rgba(0, 27, 46, 0.8) 0%,
        rgba(0, 27, 46, 0.6) 100%); */
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.boot-sequence {
    margin: 40px auto;
    max-width: 500px;
    text-align: left;
}

.type-line {
    color: var(--cyber-blue);
    margin-bottom: 15px;
    opacity: 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
    transform: translateY(10px);
}

.type-line:nth-child(1) { animation: lineAppear 0.3s ease-out 0s forwards; }
.type-line:nth-child(2) { animation: lineAppear 0.3s ease-out 0.3s forwards; }
.type-line:nth-child(3) { animation: lineAppear 0.3s ease-out 0.6s forwards; }
.type-line:nth-child(4) { animation: lineAppear 0.3s ease-out 0.9s forwards; }
.type-line:nth-child(5) { animation: lineAppear 0.3s ease-out 1.2s forwards; }
.type-line:nth-child(6) { animation: lineAppear 0.3s ease-out 1.5s forwards; }
.type-line:nth-child(7) { animation: lineAppear 0.3s ease-out 1.8s forwards; }

.cyber-input {
    margin-bottom: 25px;
    position: relative;
}

.cyber-input label {
    color: var(--cyber-blue);
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 1px;
}

.cyber-input input {
    width: 100%;
    background: rgba(0, 168, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    padding: 12px;
    transition: all 0.3s;
}

.cyber-input input:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

.security-status {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px;
    background: rgba(0, 168, 255, 0.05);
    border-radius: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    color: var(--cyber-blue);
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--cyber-blue);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--cyber-blue);
    animation: pulse 2s infinite;
}

.cyber-button {
    width: 100%;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--cyber-blue);
    color: var(--cyber-blue);
    padding: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 5px;
}

.cyber-button:hover {
    background: var(--cyber-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
}

.terminal-link {
    display: block;
    margin-top: 20px;
    color: var(--cyber-blue);
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s;
}

.terminal-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--cyber-blue);
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(var(--grid-size)); }
}

@keyframes lineAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加玻璃态模糊效果 */
.glass-effect {
    display: none;
}

/* 添加光晕效果 */
.cyber-terminal::before {
    display: none;
}

/* 添加新的样式来居中登录表单 */
.cyber-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* 更新输入框组的样式 */
.input-group {
    margin-bottom: 40px;
}

/* 添加响应式设计 */
@media (max-width: 768px) {
    .cyber-terminal {
        width: 100vw;
        height: 100vh;
    }

    .terminal-header {
        padding: 10px 15px;
    }

    .terminal-content {
        padding: 15px;
    }

    .cyber-form {
        padding: 0 15px;
    }

    .security-status {
        flex-direction: column;
        gap: 15px;
    }

    .cyber-input input {
        padding: 10px;
    }

    .cyber-button {
        padding: 12px;
    }

    .boot-sequence {
        margin: 20px auto;
        padding: 0 15px;
    }

    .type-line {
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* 添加新的滚动条样式 */
.terminal-content::-webkit-scrollbar {
    width: 6px;
}

.terminal-content::-webkit-scrollbar-track {
    background: rgba(0, 168, 255, 0.05);
}

.terminal-content::-webkit-scrollbar-thumb {
    /* background: var(--cyber-blue); */
    border-radius: 3px;
}

/* 添加光标效果 */
.type-line:last-child::after {
    content: '█';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 添加 canvas 样式 */
#matrixBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--dark-blue);
}

.error-message {
    color: #ff3e3e;
    background: rgba(255, 62, 62, 0.1);
    border: 1px solid #ff3e3e;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    font-family: 'Courier New', monospace;
    display: none;
}

.error-message.show {
    display: block;
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Header 样式 */
.header {
    background: rgba(0, 168, 255, 0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header button {
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--cyber-blue);
    color: var(--cyber-blue);
    padding: 0.5rem 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.header button:hover {
    background: var(--cyber-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.header-title {
    color: var(--cyber-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}
 